package com.acsior.hibernate.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * OrderInvitation entity. @author MyEclipse Persistence Tools <b><i>powered by
 * Belev</i></b>
 */
@Entity
@Table(name = "order_invitations")
@GeneratorKey(tableName = "order_invitations")
public class OrderInvitationVO extends HibernatePersistantIntegerIdVO {

	private static final long serialVersionUID = -2526969921594044748L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "employee_id", nullable = false)
	private EmployeeVO employee;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "order_service_id", nullable = false)
	private OrderServiceVO orderService;

	@Column(name = "print_date", nullable = false, length = 23)
	private Date printDate;

	@Column(name = "sender", nullable = false)
	private boolean sender;

	/** default constructor */
	public OrderInvitationVO() {
		super();
	}

	/** @return the employee */
	public EmployeeVO getEmployee() {
		return this.employee;
	}

	/** @return the orderService */
	public OrderServiceVO getOrderService() {
		return this.orderService;
	}

	/** @return the printDate */
	public Date getPrintDate() {
		return this.printDate;
	}

	/** @return the sender */
	public boolean isSender() {
		return this.sender;
	}

	/** @param employee */
	public void setEmployee(EmployeeVO employee) {
		this.employee = employee;
	}

	/** @param orderService */
	public void setOrderService(OrderServiceVO orderService) {
		this.orderService = orderService;
	}

	/** @param printDate */
	public void setPrintDate(Date printDate) {
		this.printDate = printDate;
	}

	/** @param sender */
	public void setSender(boolean sender) {
		this.sender = sender;
	}

}